package com.tuanzi.loan.business.service.statistics.impl;

import com.tuanzi.loan.business.repository.statistics.LoanWholeProcessCheckedStatRepository;
import com.tuanzi.loan.business.service.statistics.LoanWholeProcessCheckedStatService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.LoanWholeProcessCheckedStatRequest;
import com.tuanzi.loan.vo.response.statistics.LoanWholeProcessCheckedStatResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Debug
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class LoanWholeProcessCheckedStatServiceImpl implements LoanWholeProcessCheckedStatService{
    @Autowired
    LoanWholeProcessCheckedStatRepository repository;
    @Override
    public Page<LoanWholeProcessCheckedStatResponse> list(PageSearcher<LoanWholeProcessCheckedStatRequest> pageSearcher) {
        return repository.list(pageSearcher.getSearchCondition(),pageSearcher.getPageable());
    }
}
